class obj:
    def __init__(self,s:str,br:bool):
        self.text_html="<p>"+self.reset_text(s)+"</p>"
        if br==True:
            self.text_html+="\n<br />"
    def get_html(self):
        return self.text_html
    def reset_text(self,text):
        flag=False
        out=''
        for i in text:
            if i=='`':
                if flag==False:
                    flag=True
                    out+='<code>'
                else:
                    flag=False
                    out+='</code>'
            else:
                out+=i
        return out
